<?php

namespace app\index\controller;

use think\Controller;
use testTrait\Test;
use testTrait\Test1;

class TestTraits extends Controller
{
    use Test,Test1
    {
        Test::hello insteadof Test1;
        Test1::hello as Test2;
    }

    public function test ()
    {
        $data = $this->Test2();
        dump($data);die;
    }
}
